#include <stdio.h>
int main(void)
{
	//声明变量：华氏度下限、华氏度上限、华氏度值 
	int lower,upper,fahr;
	//声明变量：摄氏度值 
	double celsius;
	//输入华氏度下限值 
	printf("请输入华氏度下限：\n"); 
	scanf("%d",&lower);
	//输入华氏度上限值 
	printf("请输入华氏度上限：\n");
	scanf("%d",&upper);
	//判断输入的华氏度下限值是否小于等于华氏度上限值
	if(lower<=upper)
	{
		printf("fahr celsius\n");   //是 →输出表头 + for循环启动 
		for(fahr=lower;fahr<=upper;fahr++)
		{   //定义fahr与lower值相等 
		celsius = (5.0/9.0)*(fahr-32);
		printf("%d %.1lf\n",fahr,celsius);
		}
	}
	else
	{
	printf("华氏温度下限大于上限！\n"); //否 →输出错误警告 
	}
	return 0;
}
